<?php
namespace Advert\Controller;
use Api\Controller\BaseApiController;
use Advert\Model\AdvertModel;
class ApiController extends BaseApiController {
	protected $advert_db;
//	protected $mid;
//	protected $fsid;
	
	function _initialize(){
		parent::_initialize();
		$this->mid = $this->_initUser(I('uid'));

	}

	/**
	 *  页面广告位
	 */

	function advert_one(){
        $advert_db = new AdvertModel();
	    $map='type =10';
        $limit='1';
		$return = $advert_db->list_api($map,$limit,'updatetime desc');
		$this->jsonOutput($return);
	}
}

?>